package com.xiu.weixin.pojo;

public class AccessToken {
	private String access_token;
	private long expires_in;

	public AccessToken() {
		super();
	}

	public AccessToken(String access_token, String expires_in) {
		super();
		this.access_token = access_token;
		this.expires_in = System.currentTimeMillis() + Integer.parseInt(expires_in) * 1000;
	}

	public String getAccess_token() {
		return access_token;
	}

	public void setAccess_token(String access_token) {
		this.access_token = access_token;
	}

	public long getExpires_in() {
		return expires_in;
	}

	public void setExpires_in(long expires_in) {
		this.expires_in = expires_in;
	}

	public boolean isExpired() {
		return System.currentTimeMillis() > this.expires_in;
	}
}
